<div class="modal-header">
  <button type="button" class="close" ng-click="cancel()" ><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  <h4 class="modal-title text-info text-lg text-center">添加点名学生</h4>
</div>

<div class="modal-body" style="height: 8em">

  <div ng-hide="uploading || students">
    <label for="id">学号</label>
    <input type="text" id="id" ng-model="student.number" placeholder="请输入学生的学号"/>

    <label for="name">姓名</label>
    <input type="text" id="name" ng-model="student.name" placeholder="请输入学生的姓名"/>
  </div>

  <div class="col-sm-offset-3 col-sm-6" style="margin-top: 1em">
    <button ng-file-select
            ng-hide="uploading || students"
            ng-model="files"
            multiple="true"
            class="btn btn-success btn-block">
      通过上传Excel名单添加
    </button>

    <p class="text-info" ng-show="uploading" >文件上传中</p>
    <p class="text-info" ng-show="students" >已录入{{students.length}}个学生</p>
  </div>

</div>

<div class="modal-footer">
  <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
  <button type="button" class="btn btn-primary" ng-click="ok()">添加</button>
</div>